package cn.tedu.sp12;

public class SingleObject2 {
//饿汉式
    private  static SingleObject2 instance=new SingleObject2();
    private SingleObject2(){};
    public static  SingleObject2 getInstance(){
        return instance;
    }

}

